import Main from '@/components/main'
export const commodityRouter = [
  {
    path: '/commodity_manage',
    name: 'commodity_manage',
    meta: {
      icon: '_iconshangpinguanli',
      title: '商品管理',
      showAlways: true,
      snMenu: 'commodity_manage',
      sn: 'moms:product:productview|moms:product:recycleview|moms:product:productlog'
    },
    component: Main,
    children: [
      {
        path: 'commodity_list',
        name: 'commodity_list',
        meta: {
          title: '商品列表',
          snMenu: 'commodity_list',
          sn: 'moms:product:productview'
        },
        component: () => import('@/view/store-commodity/manage-list/list.vue')
      },
      {
        path: 'commodity_create',
        name: 'commodity_create',
        meta: {
          title: '添加商品',
          hideInMenu: true,
          snMenu: 'commodity_list',
          sn: 'moms:product:productcreate'
        },
        component: () => import('@/view/store-commodity/manage-list/create.vue')
      },
      {
        path: 'commodity_detail/:id',
        name: 'commodity_detail',
        meta: {
          title: '商品信息',
          hideInMenu: true,
          notCache: true,
          snMenu: 'commodity_list',
          sn: 'moms:product:productdetail'
        },
        component: () => import('@/view/store-commodity/manage-list/detail.vue')
      },
      {
        path: 'commodity_edit/:id',
        name: 'commodity_edit',
        meta: {
          title: '编辑商品',
          hideInMenu: true,
          snMenu: 'commodity_list',
          sn: 'moms:product:productupdate'
        },
        component: () => import('@/view/store-commodity/manage-list/edit.vue')
      },
      {
        path: 'commodity_log',
        name: 'commodity_log',
        meta: {
          title: '商品日志',
          snMenu: 'commodity_log',
          sn: 'moms:product:productlog'
        },
        component: () => import('@/view/store-commodity/manage-list/log.vue')
      },
      {
        path: 'commodity_recycle',
        name: 'commodity_recycle',
        meta: {
          title: '商品回收站',
          snMenu: 'commodity_recycle',
          sn: 'moms:product:recycleview'
        },
        component: () => import('@/view/store-commodity/manage-list/recycle.vue')
      }
    ]
  },
  {
    path: '/commodity_set',
    name: 'commodity_set',
    meta: {
      icon: '_iconshangpinpeizhi',
      title: '商品配置',
      showAlways: true,
      snMenu: 'commodity_set',
      sn: 'moms:product:categoryview|moms:product:brandview|moms:product:propview'
    },
    component: Main,
    children: [
      {
        path: 'classify_list',
        name: 'commodity_classify_list',
        meta: {
          title: '商品分类',
          snMenu: 'commodity_classify_list',
          sn: 'moms:product:categoryview'
        },
        component: () => import('@/view/store-commodity/set-list/classify/list.vue')
      },
      {
        path: 'lower_list/:id',
        name: 'commodity_lower_list',
        meta: {
          title: '下级列表',
          notCache: true,
          snMenu: 'commodity_classify_list',
          hideInMenu: true,
          sn: 'moms:product:categoryviewchild'
        },
        component: () => import('@/view/store-commodity/set-list/classify/lower-list.vue')
      },
      {
        path: 'classify_create',
        name: 'classify_create',
        meta: {
          title: '添加分类',
          snMenu: 'commodity_classify_list',
          hideInMenu: true,
          sn: 'moms:product:categorycreate'
        },
        component: () => import('@/view/store-commodity/set-list/classify/create.vue')
      },
      {
        path: 'classify_edit/:id',
        name: 'classify_edit',
        meta: {
          title: '编辑分类',
          snMenu: 'commodity_classify_list',
          hideInMenu: true,
          sn: 'moms:product:categoryupdate'
        },
        component: () => import('@/view/store-commodity/set-list/classify/edit.vue')
      },
      {
        path: 'brand_list',
        name: 'brand_list',
        meta: {
          title: '商品品牌',
          snMenu: 'brand_list',
          // notCache: true,
          sn: 'moms:product:brandview'
        },
        component: () => import('@/view/store-commodity/set-list/brand/list.vue')
      },
      {
        path: 'brand_create',
        name: 'brand_create',
        meta: {
          title: '添加品牌',
          snMenu: 'brand_list',
          hideInMenu: true,
          sn: 'moms:product:brandcreate'
        },
        component: () => import('@/view/store-commodity/set-list/brand/create.vue')
      },
      {
        path: 'brand_edit/:id',
        name: 'brand_edit',
        meta: {
          title: '编辑品牌',
          snMenu: 'brand_list',
          hideInMenu: true,
          sn: 'moms:product:brandupdate'
        },
        component: () => import('@/view/store-commodity/set-list/brand/edit.vue')
      },
      {
        path: 'brand_detail/:id',
        name: 'brand_detail',
        meta: {
          title: '查看品牌详情',
          snMenu: 'brand_list',
          hideInMenu: true,
          notCache: true,
          sn: 'moms:product:brandddetail'
        },
        component: () => import('@/view/store-commodity/set-list/brand/detail.vue')
      },
      {
        path: 'attribute_list',
        name: 'attribute_list',
        meta: {
          title: '商品属性',
          snMenu: 'attribute_list',
          sn: 'moms:product:propview'
        },
        component: () => import('@/view/store-commodity/set-list/attribute/attribute-list.vue')
      },
      {
        path: 'add_attribute',
        name: 'add_attribute',
        meta: {
          title: '添加属性',
          snMenu: 'attribute_list',
          hideInMenu: true,
          sn: 'moms:product:propcreate'
        },
        component: () => import('@/view/store-commodity/set-list/attribute/add-attribute.vue')
      },
      {
        path: 'edit_attribute/:id',
        name: 'edit_attribute',
        meta: {
          title: '编辑属性',
          snMenu: 'attribute_list',
          hideInMenu: true,
          sn: 'moms:product:propupdate'
        },
        component: () => import('@/view/store-commodity/set-list/attribute/edit-attribute.vue')
      },
      {
        path: 'paramter_list/:id',
        name: 'paramter_list',
        meta: {
          title: '参数列表',
          snMenu: 'attribute_list',
          hideInMenu: true,
          sn: 'moms:product:paramview'
        },
        component: () => import('@/view/store-commodity/set-list/attribute/paramter-list.vue')
      },
      {
        path: 'add_paramter',
        name: 'add_paramter',
        meta: {
          title: '添加参数',
          snMenu: 'attribute_list',
          hideInMenu: true,
          sn: 'moms:product:paramcreate'
        },
        component: () => import('@/view/store-commodity/set-list/attribute/add-paramter.vue')
      },
      {
        path: 'edit_paramter/:id',
        name: 'edit_paramter',
        meta: {
          title: '编辑参数',
          snMenu: 'attribute_list',
          hideInMenu: true,
          sn: 'moms:product:paramupdate'
        },
        component: () => import('@/view/store-commodity/set-list/attribute/edit-paramter.vue')
      }
    ]
  },
  {
    path: '/market_price',
    name: 'market_price',
    meta: {
      title: '价格设置',
      sn: 'moms:product:priceview'
    },
    component: Main,
    children: [
      {
        path: 'price',
        name: 'commodity_gameticket_price',
        meta: {
          title: '价格设置',
          icon: '_iconjiageguanli',
          snMenu: 'commodity_gameticket_price',
          sn: 'moms:product:priceview'
        },
        component: () => import('@/view/store-commodity/price/list.vue')
      },
      {
        path: 'price_create',
        name: 'commodity_gameticket_price_create',
        meta: {
          title: '新增价格',
          hideInMenu: true,
          snMenu: 'commodity_gameticket_price',
          sn: 'moms:product:pricecreate'
        },
        component: () => import('@/view/store-commodity/price/create.vue')
      },
      {
        path: 'price_edit/:id',
        name: 'commodity_gameticket_price_edit',
        meta: {
          title: '编辑价格',
          hideInMenu: true,
          snMenu: 'commodity_gameticket_price',
          sn: 'moms:product:priceupdate'
        },
        component: () => import('@/view/store-commodity/price/edit.vue')
      }
    ]
  },
  {
    path: '/market_times',
    name: 'market_times',
    meta: {
      title: '局数设置',
      sn: 'moms:product:roundview'
    },
    component: Main,
    children: [
      {
        path: 'times',
        name: 'commodity_gameticket_times',
        meta: {
          title: '局数设置',
          icon: '_iconjushuguanli',
          snMenu: 'commodity_gameticket_times',
          sn: 'moms:product:roundview'
        },
        component: () => import('@/view/store-commodity/times/list.vue')
      },
      {
        path: 'times_create',
        name: 'commodity_gameticket_times_create',
        meta: {
          title: '新增局数',
          hideInMenu: true,
          snMenu: 'commodity_gameticket_times',
          sn: 'moms:product:roundcreate'
        },
        component: () => import('@/view/store-commodity/times/create.vue')
      },
      {
        path: 'times_edit',
        name: 'commodity_gameticket_times_edit',
        meta: {
          title: '编辑局数',
          hideInMenu: true,
          snMenu: 'commodity_gameticket_times',
          sn: 'moms:product:roundupdate'
        },
        component: () => import('@/view/store-commodity/times/edit.vue')
      }
    ]
  },
  {
    path: '/marketing_channel',
    name: 'marketing_channel',
    meta: {
      icon: '_iconxiaoshouqudaoguanli',
      title: '销售渠道管理',
      showAlways: true,
      snMenu: 'merchandise',
      sn: 'moms:product:channelview'
    },
    component: Main,
    children: [
      {
        path: 'marketing_list',
        name: 'marketing_list',
        meta: {
          title: '销售渠道管理',
          snMenu: 'marketing_list',
          sn: 'moms:product:channelview'
        },
        component: () => import('@/view/store-commodity/marketing-channel/list.vue')
      }
    ]
  },
  {
    path: '/merchandise',
    name: 'merchandise',
    meta: {
      icon: '_iconshangpinshangxiajia',
      title: '商品上下架',
      showAlways: true,
      snMenu: 'merchandise',
      sn: 'moms:product:coinview|moms:product:gamecouponview'
    },
    component: Main,
    children: [
      {
        path: 'game_currency',
        name: 'game_currency',
        meta: {
          title: '游戏币',
          snMenu: 'game_currency',
          sn: 'moms:product:coinview'
        },
        component: () => import('@/view/store-commodity/merchandise/game-currency/list.vue')
      },
      {
        path: 'game_currency_aio',
        name: 'game_currency_aio',
        meta: {
          title: '上下架渠道',
          snMenu: 'game_currency_aio',
          sn: ''
        },
        component: () => import('@/view/store-commodity/merchandise/game-currency/aio-list.vue')
      },
      {
        path: 'game_currency_putaway',
        name: 'game_currency_putaway',
        meta: {
          title: '上架',
          snMenu: 'game_currency_putaway',
          sn: ''
        },
        component: () => import('@/view/store-commodity/merchandise/game-currency/putaway.vue')
      },
      {
        path: 'game_currency_goods',
        name: 'game_currency_goods',
        meta: {
          title: '商品管理',
          snMenu: 'game_currency_goods',
          sn: ''
        },
        component: () => import('@/view/store-commodity/merchandise/game-currency/goods-list.vue')
      },
      {
        path: 'game_roll',
        name: 'game_roll',
        meta: {
          title: '游戏券',
          snMenu: 'game_roll',
          sn: 'moms:product:gamecouponview'
        },
        component: () => import('@/view/store-commodity/merchandise/game-roll/list.vue')
      },
      {
        path: 'game_roll_aio',
        name: 'game_roll_aio',
        meta: {
          title: '上下架渠道',
          snMenu: 'game_roll_aio',
          sn: ''
        },
        component: () => import('@/view/store-commodity/merchandise/game-roll/aio-list.vue')
      },
      {
        path: 'game_roll_putaway',
        name: 'game_roll_putaway',
        meta: {
          title: '上架',
          snMenu: 'game_roll_putaway',
          sn: ''
        },
        component: () => import('@/view/store-commodity/merchandise/game-roll/putaway.vue')
      },
      {
        path: 'game_roll_goods',
        name: 'game_roll_goods',
        meta: {
          title: '商品管理',
          snMenu: 'game_roll_goods',
          sn: ''
        },
        component: () => import('@/view/store-commodity/merchandise/game-roll/goods-list.vue')
      }
    ]
  },
  {
    path: '/shop_commodity_manage',
    name: 'shop_commodity_manage',
    meta: {
      icon: '_iconmendianshangpinguanli',
      title: '门店商品管理',
      showAlways: true,
      snMenu: 'shop_commodity_manage',
      sn: 'moms:product:salesproductview|moms:product:shopcoinview|moms:product:shopgamecouponview|moms:product:shopproductview|moms:product:shopentertainmentview|moms:product:shopserviceview|moms:product:shopgamecardview'
    },
    component: Main,
    children: [
      {
        path: 'commodity_up',
        name: 'commodity_up',
        meta: {
          title: '门店商品上下架',
          snMenu: 'commodity_up',
          sn: 'moms:product:salesproductview'
        },
        component: () => import('@/view/store-commodity/shop-commodity/all.vue')
      },
      {
        path: 'gamecoin_list/:id',
        name: 'gamecoin_list',
        meta: {
          title: '游戏币商品列表',
          snMenu: 'commodity_up',
          hideInMenu: true,
          sn: 'moms:product:shopcoinview'
        },
        component: () => import('@/view/store-commodity/shop-commodity/gameCoin/list.vue')
      },
      {
        path: 'gamecoin_detail/:id',
        name: 'gamecoin_detail',
        meta: {
          title: '游戏币商品详情',
          hideInMenu: true,
          notCache: true,
          snMenu: 'commodity_up',
          sn: 'moms:product:shopcoindetail'
        },
        component: () => import('@/view/store-commodity/shop-commodity/gameCoin/detail.vue')
      },
      {
        path: 'gameticket_list/:id',
        name: 'gameticket_list',
        meta: {
          title: '游戏券商品列表',
          hideInMenu: true,
          snMenu: 'commodity_up',
          sn: 'moms:product:shopgamecouponview'
        },
        component: () => import('@/view/store-commodity/shop-commodity/gameTicket/list.vue')
      },
      {
        path: 'gameticket_detail/:id',
        name: 'gameticket_detail',
        meta: {
          title: '游戏券商品详情',
          hideInMenu: true,
          notCache: true,
          snMenu: 'commodity_up',
          sn: 'moms:product:shopgamecoupondetail'
        },
        component: () => import('@/view/store-commodity/shop-commodity/gameTicket/detail.vue')
      },
      {
        path: 'goods_list/:id',
        name: 'goods_list',
        meta: {
          title: '门店商品列表',
          hideInMenu: true,
          snMenu: 'commodity_up',
          sn: 'moms:product:shopproductview'
        },
        component: () => import('@/view/store-commodity/shop-commodity/product-up/list.vue')
      },
      {
        path: 'goods_putaway',
        name: 'goods_putaway',
        meta: {
          title: '门店商品上架',
          hideInMenu: true,
          snMenu: 'commodity_up',
          sn: 'moms:product:shopproductupdate'
        },
        component: () => import('@/view/store-commodity/shop-commodity/product-up/putaway.vue')
      },
      {
        path: 'goods_detail/:id',
        name: 'goods_detail',
        meta: {
          title: '门店商品详情',
          hideInMenu: true,
          notCache: true,
          snMenu: 'commodity_up',
          sn: 'moms:product:shopproductdetail'
        },
        component: () => import('@/view/store-commodity/shop-commodity/product-up/detail.vue')
      },
      {
        path: 'lie_list/:id',
        name: 'lie_list',
        meta: {
          title: '休闲商品列表',
          hideInMenu: true,
          snMenu: 'commodity_up',
          sn: 'moms:product:shopentertainmentview'
        },
        component: () => import('@/view/store-commodity/shop-commodity/lie.vue')
      },
      {
        path: 'server_list/:id',
        name: 'server_list',
        meta: {
          title: '服务商品列表',
          hideInMenu: true,
          snMenu: 'commodity_up',
          sn: 'moms:product:shopserviceview'
        },
        component: () => import('@/view/store-commodity/shop-commodity/server.vue')
      },
      {
        path: 'gamecard_list/:id',
        name: 'gamecard_list',
        meta: {
          title: '游戏卡商品列表',
          snMenu: 'commodity_up',
          hideInMenu: true,
          sn: 'moms:product:shopgamecardview'
        },
        component: () => import('@/view/store-commodity/shop-commodity/game-card.vue')
      }
    ]
  },
  {
    path: '/exchange_commodity',
    name: 'exchange_commodity',
    meta: {
      icon: '_iconduihuanshangpinliebiao',
      title: '兑换商品管理',
      snMenu: 'exchange_commodity',
      sn: 'moms:product:exchangeproductview'
    },
    component: Main,
    children: [
      {
        path: 'exchang_list',
        name: 'exchang_list',
        meta: {
          title: '兑换商品列表',
          icon: '_iconduihuanshangpinliebiao',
          snMenu: 'exchang_list',
          sn: 'moms:product:exchangeproductview'
        },
        component: () => import('@/view/store-commodity/exchange/list.vue')
      },
      {
        path: 'exchang_up',
        name: 'exchang_up',
        meta: {
          title: '兑换商品上架',
          hideInMenu: true,
          snMenu: 'exchang_list',
          sn: 'moms:product:exchangeproductlisting'
        },
        component: () => import('@/view/store-commodity/exchange/up.vue')
      }
    ]
  }
]
